﻿@model SrBBSPro.Entities.Project
@{
    ViewBag.Title = "工程详细";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}
<div class="main layui-clear">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>项目详细</legend>
    </fieldset>
    <div class="layui-form layui-form-pane">
        <div class="wrap">
            <div class="fly-tab user-tab">
                <span id="tabs">
                    <a href="javascript:;" class="tab-this">基本信息</a>
                    <a href="javascript:;" type="Member">项目成员</a>
                    <a href="javascript:;" type="PageList">机能一览</a>
                    <a href="javascript:;" type="Schedule">项目日程</a>
                    <a href="javascript:;" type="Bug">项目障害</a>
                </span>
            </div>
            <form method="post">
                <input type="hidden" id="Id" name="Id" value="@Model.Id" />
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label for="L_title" class="layui-form-label">项目名称</label>
                        <div class="layui-input-block">
                            <input type="text" id="Name" name="Name" class="layui-input" readonly="readonly" value="@Model.Name" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">项目类别</label>
                        <div class="layui-input-block">
                            <input id="ProjectKind" name="ProjectKind" class="layui-input" readonly="readonly" value="@Model.ProjectKindName" />
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">项目纳期</label>
                        <div class="layui-input-block">
                            <input id="EndDate" name="EndDate" class="layui-input" readonly="readonly"  value="@Model.EndDate.ToString("yyyy/MM/dd")"/>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">部门</label>
                        <div class="layui-input-block">
                            <input id="Depart" name="Depart" class="layui-input" readonly="readonly" value="@Model.DepartName" />
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">移行前语言</label>
                        <div class="layui-input-block">
                            <input id="BefLang" name="BefLang" class="layui-input" readonly="readonly" value="@Model.BefLang" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">移行后语言</label>
                        <div class="layui-input-block">
                            <input id="AftLang" name="AftLang" class="layui-input" readonly="readonly" value="@Model.AftLang" />
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">移行前语言</label>
                        <div class="layui-input-block">
                            <input id="BefDB" name="BefDB" class="layui-input" readonly="readonly" value="@Model.BefDB" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">移行后语言</label>
                        <div class="layui-input-block">
                            <input id="AftDB" name="AftDB" class="layui-input" readonly="readonly" value="@Model.AftDB" />
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label for="Info" class="layui-form-label">项目描述</label>
                    <div class="layui-input-block">
                        <textarea id="Info" name="Info" readonly="readonly" class="layui-textarea" >@Model.Info</textarea>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
@section scripts{
<script>
        $("#tabs").find("a").click(function () {
            var type = $(this).attr("type");
            getPost('/Project/IsMember', { pid: '@Model.Id' }, function (res) {
                if (res.status == 0 || layui.data("user").user.IsAdmin) {
                    if (type != undefined && type != "") {
                        redirect('Project', type, '@Model.Id');
                    }
                }
            });
        });
</script>
}